package com.simple.dao.operator;

import com.simple.entity.operator.Operator;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component(value = "operatorDao")
public interface operatorDao {

    void addOperator(@Param("operator") Operator operator);

    void deleteOperator(@Param("operatorId")int operatorId);

    void updateOperator(@Param("operator") Operator operator);

    Operator findOperatorById(@Param("operatorId") int operatorId);

    List<Operator> findAllOperators();

}
